
interface TodoList {
  id:number;
  name:string;
  isDone:boolean
}

const initValue = {
  list:Array<TodoList> = [
      {
        id: 1,
        name: '吃饭',
        isDone: false,
      },
      {
        id: 2,
        name: '睡觉',
        isDone: true,
      },
      {
        id: 3,
        name: '打豆豆',
        isDone: false,
      },
  ]
}

export const todos = (state:initValue,action:any)=>state